import 'package:flutter_pink_app/serialized/recommend.dart';

// 排行请求序列化数据
// class FavouriteSerializedGen {
//   int code;
//   FavouriteRes data;
//   String msg;

//   FavouriteSerializedGen({this.code, this.data, this.msg});

//   FavouriteSerializedGen.fromJson(Map<String, dynamic> json) {
//     code = json['code'];
//     data = json['data'] != null ? FavouriteRes.fromJson(json['data']) : null;
//     msg = json['msg'];
//   }

//   Map<String, dynamic> toJson() {
//     final Map<String, dynamic> data = new Map<String, dynamic>();
//     data['code'] = this.code;
//     if (this.data != null) {
//       data['data'] = this.data.toJson();
//     }
//     data['msg'] = this.msg;
//     return data;
//   }
// }

class FavouriteSerializedGen {
  int total;
  List<VideoInfo> list;

  FavouriteSerializedGen({this.total, this.list});

  FavouriteSerializedGen.fromJson(Map<String, dynamic> json) {
    total = json['total'];
    if (json['list'] != null) {
      list = <VideoInfo>[];
      json['list'].forEach((v) {
        list.add(VideoInfo.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['total'] = this.total;
    if (this.list != null) {
      data['list'] = this.list.map((v) => v.toJson()).toList();
    }
    return data;
  }
}
